home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / diffs / texinfo-.1 / info / signals.c < prev    next >
Encoding:
Text File  |  1994-08-05  |  2.4 KB  |  89 lines

  1. *** orig/texinfo-.1/info/signals.c    Sun Aug 29 18:41:16 1993
  2. --- src/texinfo-.1/info/signals.c    Sun Aug 29 19:02:20 1993
  3. ***************
  4. *** 76,86 ****
  5.   void
  6.   initialize_info_signal_handler ()
  7.   {
  8. ! #if defined (SIGTSTP)
  9.     old_TSTP = (SigHandler *) signal (SIGTSTP, info_signal_handler);
  10.     old_TTOU = (SigHandler *) signal (SIGTTOU, info_signal_handler);
  11.     old_TTIN = (SigHandler *) signal (SIGTTIN, info_signal_handler);
  12. ! #endif /* SIGTSTP */
  13.   
  14.   #if defined (SIGWINCH)
  15.     old_WINCH = (SigHandler *) signal (SIGWINCH, info_signal_handler);
  16. --- 76,86 ----
  17.   void
  18.   initialize_info_signal_handler ()
  19.   {
  20. ! #if defined (SIGTSTP) && !defined (__MSDOS__)
  21.     old_TSTP = (SigHandler *) signal (SIGTSTP, info_signal_handler);
  22.     old_TTOU = (SigHandler *) signal (SIGTTOU, info_signal_handler);
  23.     old_TTIN = (SigHandler *) signal (SIGTTIN, info_signal_handler);
  24. ! #endif /* SIGTSTP && !__MSDOS__ */
  25.   
  26.   #if defined (SIGWINCH)
  27.     old_WINCH = (SigHandler *) signal (SIGWINCH, info_signal_handler);
  28. ***************
  29. *** 110,132 ****
  30.   
  31.     switch (sig)
  32.       {
  33. ! #if defined (SIGTSTP)
  34.       case SIGTSTP:
  35.       case SIGTTOU:
  36.       case SIGTTIN:
  37. ! #endif
  38.   #if defined (SIGINT)
  39.       case SIGINT:
  40.   #endif
  41.         {
  42. ! #if defined (SIGTSTP)
  43.       if (sig == SIGTSTP)
  44.         old_signal_handler = &old_TSTP;
  45.       if (sig == SIGTTOU)
  46.         old_signal_handler = &old_TTOU;
  47.       if (sig == SIGTTIN)
  48.         old_signal_handler = &old_TTIN;
  49. ! #endif /* SIGTSTP */
  50.       if (sig == SIGINT)
  51.         old_signal_handler = &old_INT;
  52.   
  53. --- 110,132 ----
  54.   
  55.     switch (sig)
  56.       {
  57. ! #if defined (SIGTSTP) && !defined (__MSDOS__)
  58.       case SIGTSTP:
  59.       case SIGTTOU:
  60.       case SIGTTIN:
  61. ! #endif /* SIGTSTP && !__MSDOS__ */
  62.   #if defined (SIGINT)
  63.       case SIGINT:
  64.   #endif
  65.         {
  66. ! #if defined (SIGTSTP) && !defined (__MSDOS__)
  67.       if (sig == SIGTSTP)
  68.         old_signal_handler = &old_TSTP;
  69.       if (sig == SIGTTOU)
  70.         old_signal_handler = &old_TTOU;
  71.       if (sig == SIGTTIN)
  72.         old_signal_handler = &old_TTIN;
  73. ! #endif /* SIGTSTP && !__MSDOS__ */
  74.       if (sig == SIGINT)
  75.         old_signal_handler = &old_INT;
  76.   
  77. ***************
  78. *** 137,143 ****
  79. --- 137,145 ----
  80.       fflush (stdout);
  81.       terminal_unprep_terminal ();
  82.       signal (sig, *old_signal_handler);
  83. + #if !defined (__MSDOS__)
  84.        UNBLOCK_SIGNAL (sig);
  85. + #endif /* !__MSDOS__ */
  86.       kill (getpid (), sig);
  87.   
  88.       /* The program is returning now.  Restore our signal handler,
  89.